package com.auth.service;

import java.util.List;
import org.apache.log4j.Logger;

import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.auth.mapper.T_user_roleMapper;
import com.auth.domain.T_user_role;

@Service("t_user_roleService")
@Transactional
public class T_user_roleService{
	private static Logger log = Logger.getLogger(T_user_roleService.class.getName());

	@Resource
    private T_user_roleMapper t_user_roleMapper;


	public int save(T_user_role obj){
		 return t_user_roleMapper.save(obj);
	}

	public int update(T_user_role obj){
		return t_user_roleMapper.update(obj);
	}

	public int delete(T_user_role obj){
		return t_user_roleMapper.delete(obj);
	}

	public T_user_role findById(T_user_role obj){
		return t_user_roleMapper.findById(obj);
	}

	public List findAll(T_user_role obj ){
		 return t_user_roleMapper.findAll(obj);
	}

	public int findCountAll(T_user_role obj ){
		 return t_user_roleMapper.findCountAll(obj);
	}
}
